<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Jstl Demo</title>
</head>
<body>
<table cellpadding=1 cellspacing=1 border="1px solid" width="80%">
    <thead>
    <tr>
        <th>ID</th>
        <th>UserName</th>
        <th>Name</th>
        <th>Age</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${users}" var="user">
        <tr>
            <th>${user}</th>
            <th>${user.userName}</th>
            <th>${user.name}</th>
            <th>${user.age}</th>
        </tr>
    </c:forEach>
    </tbody>
</table>

</body>
</html>
